package com.vbobot.demo.spring.nacos.client;

import com.vbobot.demo.spring.nacos.client.ClientTestController.GetWithBodyParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Bobo
 * @date 2022/9/19
 */
@FeignClient(name = "spring-demo-nacos-server")
public interface NacosServerFeign {

    @RequestMapping("/hello/world")
    String helloWorld();

    @GetMapping("/get/with/body")
    String getWithBody(@RequestBody GetWithBodyParam param);
}
